<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@page import="com.tcs.model.User"%>
<%@ page session="true"%>
<%
	User usuario=null;
	HttpSession sesionOk = request.getSession();
	if (sesionOk.getAttribute("usuario") == null) {
%>
<jsp:forward page="index.jsp">
	<jsp:param name="error" value="Es obligatorio identificarse" />
</jsp:forward>
<%
	} else {
		usuario = (User)sesionOk.getAttribute("usuario");
	}
%>
<%
    String nroPedido = request.getParameter("id");
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<%@ include file="include-head.html"%>
</head>

<body>
	<!-- loading animation -->
	<div id="qLoverlay"></div>
	<div id="qLbar"></div>

<jsp:include page="include-header.jsp" />
 
	<div id="wrapper">
		<!--Sidebar background-->
		<div id="sidebarbg"></div>

		
<jsp:include page="include-sidebar.jsp" />

	<!--Body content-->
		<div id="content" class="clearfix">
			<div class="contentwrapper">
				<!--Content wrapper-->

				<div class="heading">
					<h3>Detalle de Pedido</h3>
				</div>
				<!-- End .heading-->

				<!-- Build page from here: -->
				<div class="row-fluid">
					<div class="span12">

  

						

<h3>Nro. Pedido: <c:out value="${requisitionInfo.requisitionId}"/></h3> 
<h3>Fecha de Apertura: <c:out value="${requisitionInfo.requisitionDate}"/></h3> 

	
					
						<!-- COMIENZO LISTADO TABLA DE DETALLE de Articulos de este pedido  -->

						<div class="box chart gradient">

							<div class="title">

								<h4>
									<span class="icon16 icomoon-icon-bars"></span> <span>Detalle de Pedidos</span>
									 
								</h4>
					

							</div>
							<div class="content noPad clearfix">
									

<c:if test="${!empty requisitionsDetail}">
	<table cellpadding="0" cellspacing="0" border="0"
									class="responsive dynamicTable display table table-bordered"
									width="100%">
			<thead>
										<tr>
		
		
			<th>MARCA</th>
			<th>NOMBRE ARTICULO</th>
			<th>PRECIO</th>
			<th>CANTIDAD:</th>
		</tr>
									</thead>
								
<tbody>
		<c:forEach items="${requisitionsDetail}" var="requisitionDetail">
			<tr class="odd gradeX">
			
			 
				
			 	<td><c:out value="${requisitionDetail.article.articleBrand.brandName}"/></td>
				<td><c:out value="${requisitionDetail.article.articleName}"/></td>
				<td><c:out value="${requisitionDetail.article.articlePrice}"/></td>
				<td><c:out value="${requisitionDetail.requisitionDetailTotal}"/></td>
			</tr>
		</c:forEach>
			</tbody>
	</table>
</c:if>





							</div>
							
						</div>
						<!-- End .box -->
				
			
	<!--
	  <button type="submit" onclick=onclick="document.location='closeRequisition.html?id="${requisitionInfo.requisitionId}"/>'"> type="submit" class="btn btn-primary" ><span class="icon16 icomoon-icon-basket white"></span>Despachar / Cerrar Pedido</button>

	-->
					</div>
				
                                    
                                   
                                    
                                    
                                  
                                     <div class="marginB10"></div>
                              
					<!-- End Span12 (ancho) -->
				</div>
				<!-- End .row-fluid -->
			</div>
			<!-- End contentwrapper -->
		</div>
		<!-- End #content -->
	</div>
	<!-- End #wrapper -->
	<%@ include file="include-javascript.html"%>
</body>
</html>




